import http from "../uitls/http.js";

// 根据id获取章节信息
export const getChapterAPI = (id) => {
  return http({
    url: `/chapter/${id}`,
    method:'get',
  })
}

// 根据id和num获取章节信息
export const getChapterByNumAPI = (id,num) => {
  return http({
    url: `/chapter/${id}/${num}`,
    method:'get',
  })
}